package com.dpj.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dpj.seckill.pojo.GoodsVo;
import com.dpj.seckill.pojo.Order;
import com.dpj.seckill.pojo.TUser;
import com.dpj.seckill.vo.OrderDetailVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author testjava
 * @since 2022-07-05
 */
public interface OrderService extends IService<Order> {

    Order seckill(TUser user, GoodsVo good);

    //订单详情
    OrderDetailVo detail(Long orderId);

    //获取秒杀地址
    String createPath(TUser user, Long goodsId);

    //校验秒杀地址
    boolean checkPath(TUser user, Long goodsId, String path);

    //校验验证码
    boolean checkCaptcha(TUser user, Long goodsId, String captcha);
}
